export interface user {
    username: string | number,
    password: string
}
export interface Img {
    url: string,
    isImage?: boolean
}
export interface publishType {
    ImgList: Array<string>,
    name: string,
    remark: string,
    type: string,
    age: string | number,
    gender: string,
    postsType:string
}


export interface card {
    card_id: string,
    publisher_id: string,
    avatar: string,
    imgUrl: Array<string>,
    nickname: string,
    name: string,
    remark: string,
    state: string | number,
    type: string,
    age: string | number,
    gender: string,
    title?:string,
    content?:string,
    sharer_id?:string,
    collect_count?:number
}

export interface userInfo {
    user_id: string,
    avatar: string,
    nickname: string,
    gender: any,
    registerTime: string,
    brief_intro: string,
    permissions:{
        publish:boolean,
        comment:boolean,
        approval:boolean
    },
    realname:string,
    idNo:string,
    location:string
}

export interface Message {
    message: string,
    senderId: string,
    receiverId: string,
    type:string,
    time?:Date|string
}
export interface messageInfo {
    messageCohort: Array<Message>,
    id: string,
    unReadNum: number
}
export interface iDrag {
    disY: number,
    Y: number,
    viewHeight: number,
    damping: number,
    moveY: number
}

export interface commentType {
[x: string]: any
    user_id: string,
    comment_id: string,
    avatar: string,
    nickname:string,
    content: string,
    timestamp: string,
    like_count?:number,
    reply_count?:number,
    parent_comment_id?:string,
    reply:[]
}








